﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JSC.Core;
using JSC.Core.Attributes;
using JSC.Portal.Entities;
using System.Web.UI.WebControls;
using JSC.Portal.Web.App.Modules.Articles.Entities;

namespace JSC.Portal.Web.App.Modules.Articles.Services
{
    [ConcreteType("JSC.Portal.Web.App.Modules.Articles.Data.ArticleService, JSC.Portal.Web.App")]
    public interface IArticleService : IDao<Article>
    {
        IList<Article> GetArticles(int sectionId, SortBy sortBy, SortDirection sortDirection);
        IList<Article> GetRssArticles(Section section, int maxNumberOfArticles, SortBy sortBy, SortDirection sortDirection);
        IList<Article> GetRssArticlesByCategory(ArticleCategory category, SortBy sortBy, SortDirection sortDirection);
        IList<ArticleCategory> GetArticleCategoriesBySection(Section section);
    }
}
